//
//  BuyOrSellEvaluateButton.swift
//  Exchange
//
//  Created by rui on 2018/4/26.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit

class BuyOrSellCancelButton: UIButton {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        initUI()
    }
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        initUI()
    }
    func initUI() {
       self.themeSetTitleColor(ThemeManager.ThemeColorKeys.text2, for: .normal)
    }
}

class BuyOrSellEvaluateButton: UIButton {

    override init(frame: CGRect) {
        super.init(frame: frame)
        initUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
         initUI()
    }
    func initUI() {
        self.layer.cornerRadius = 3
        self.layer.masksToBounds = true
        self.setBackgroundImage(UIImage.image(color: UIColor(hexStr: "#eb4949")), for: .selected)
        self.setBackgroundImage(UIImage.image(color: UIColor(hexStr: "#c0c0c0")), for: .normal)
        self.setTitleColor(UIColor(hexStr: "#fdfdfd"), for: .normal)
        self.titleLabel?.font = UIFont.systemFont(ofSize: 12)
    }

}
